home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1999 April: Mac OS SDK / Dev.CD Apr 99 SDK1.toast / Development Kits / ColorSync 2.5.1 SDK / Sample Code / CSDemo 2.5 / ShellSources / appGlobals.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-09-09  |  996 b   |  40 lines  |  [TEXT/CWIE]

  1.  
  2. #ifndef _APPGLOBALS_
  3. #define _APPGLOBALS_
  4.  
  5.  
  6. #ifndef __TYPES__
  7. #include <Types.h>
  8. #endif
  9.  
  10. #ifndef __QUICKDRAW__
  11. #include <QuickDraw.h>
  12. #endif
  13.  
  14.  
  15. /**\
  16. |**| ==============================================================================
  17. |**| PUBLIC DEFINES
  18. |**| ==============================================================================
  19. \**/
  20. #define kScrollWidth    15
  21. #define MIN(x,y)        ( ((x)<(y)) ? (x) : (y) )
  22. #define MAX(x,y)        ( ((x)>(y)) ? (x) : (y) )
  23. #define HiWrd(aLong)    (((aLong) >> 16) & 0xFFFF)
  24. #define LoWrd(aLong)    ((aLong) & 0xFFFF)
  25. #define kWatchACursor    140
  26.  
  27.  
  28. /**\
  29. |**| ==============================================================================
  30. |**| PUBLIC GLOBALS
  31. |**| ==============================================================================
  32. \**/
  33. extern    Boolean                gQuitFlag ;
  34. extern    short                gAppResRefNum ;            // RefNum of application's resource file.
  35. extern    long                gAppSleepTicks  ;        // WaitNextEvent sleep time for application.
  36. extern    Boolean                gInBackground ;
  37.  
  38.  
  39. #endif
  40.